import Layout from '@/pages/public/layout' // 公共部分

const top = [{
  path: '/site/navi/top',
  component: Layout,
  children: [{
    path: '',
    component: () => import('@/pages/site/navi/top/index.vue'),
    meta: {
      title: '头部导航配置',
      permission: 'site.pc.navi.top'
    }
  }, {
    path: ':pid(\\d+)/create',
    component: () => import('@/pages/site/navi/top/create.vue'),
    meta: {
      title: '新建头部导航',
      permission: 'site.pc.navi.top.add'
    }
  }, {
    path: ':id/edit',
    component: () => import('@/pages/site/navi/top/edit.vue'),
    meta: {
      title: '编辑头部导航',
      permission: 'site.pc.navi.top.edit'
    }
  }]
}]

export default top
